home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 (Alt) / MACD 5.bin / workbench / libs / gutil_usr_379.lha / GadUtil / Docs / GadUtil_dev.readme next >
Encoding:
Text File  |  1996-12-22  |  18.1 KB  |  413 lines

  1. Short:    GUI creation library - developer archive
  2. Author:   P-O Yliniemi / Staffan Hämälä
  3. Uploader: peoyli@algonet.se (P-O Yliniemi)
  4. Version:  37.9
  5. Type:     dev/gui
  6.  
  7. Some examples may have weird names (for those who don't understand swedish),
  8. and some text files may be in swedish. This will be fixed in a later release.
  9. Contact me if there is any problem using any of the examples or the docs.
  10.  
  11. Two versions of the .library file is available with this developer package.
  12. One is the "normal" library, and the other one prints out a lot of info when
  13. executing a program that uses GadUtil.
  14.  
  15. If you need to use the debug version, rename the normal version in libs:,
  16. copy the debug version to libs, and rename it to gadutil.library. Reverse
  17. this to change back to the normal version. Don't forget to "flush" all
  18. unused libraries or reboot before testing the program again.
  19.  
  20. All necessary files for Asm & C development are included.
  21.  
  22. Changes overview:
  23. ~~~~~~~~~~~~~~~~~
  24. * 37.9  (22-Dec-96)
  25.         6 new tags added for the help functions. It is now possible to set a default
  26.         help text that will be shown if no gadget is under the pointer.
  27.  
  28.         GU_DefWTitle            - default window title
  29.         GU_DefLocWTitle         - localized window title
  30.         GU_DefSTitle            - default screen title
  31.         GU_DefLocSTitle         - localized screen title
  32.         GU_DefHelpText          - default help text
  33.         GU_DefLocHelpText       - localized help text
  34.  
  35.         A little bug removed from the help routines. Versions beore 37.9 could
  36.         display two different help text at the same time (in different gadgets or
  37.         the screen or window title).
  38.  
  39.         A new include file is included in the distribution now. Now it should be
  40.         possible to compile the examples with older versions of the system include
  41.         files (OS 2.0x includes are supported now)
  42.  
  43.         A third archive with the HTML version of the GadUtil documentation is
  44.         included in the distribution now. Also included with this archive is some
  45.         pictures of applications using GadUtil.
  46.  
  47.         The distribution has changed a bit, resulting in that the archive with all
  48.         files became smaller (developer archive only).
  49.  
  50. * 37.8  (15-Jul-96)
  51.         Some bug fixes in the new help functions. If 0 was used as data on a GU_HelpText
  52.         tag with a gadget that shows the help text in the window's or screen's title,
  53.         there were some enforcer hits
  54.  
  55.         Deleted the separate autodoc files. Appended some information on the contents of
  56.         the GU_Public structure to the autodocs. More info about SCRTITLE_HELP and
  57.         WINTITLE_HELP was also appended.
  58.  
  59.         Changed the help function so that all gadgets and title bars that are used to
  60.         display help strings is cleared if the mouse pointer is outside all gadgets that
  61.         have help texts.
  62.  
  63. * 37.7  (12-Jul-96)
  64.     Bug fix in the prototype for GU_ChangeStr (two parameters was mixed up).
  65.  
  66.     GU_ChangeStr now works for both STRING_KIND and TEXT_KIND gadgets. If the
  67.     gadget isn't a STRING or TEXT gadget nothing is done.
  68.  
  69.     Bug fix in GU_CoordsInGadBox function. The register D3 was trashed in all
  70.     earlier versions of GU.
  71.  
  72.     Three new tags allows any STRING or TEXT_KIND gadget to show a (localized)
  73.     help text for each gadget in the window. These tags also works with the
  74.     special gadgets (BEVELBOX, LABEL, PROGRESS). The gadgets attached to the
  75.     window is scanned in sequential order. If a BEVELBOX_KIND gadget matches
  76.     the pointer position, this gadget's help string will have the lowest
  77.     priority. If another BEVELBOX is found inside this, the help string for
  78.     that one will be used if there is no gadget inside that box. The help
  79.     text can also be displayed in the window/screen title.
  80.  
  81.     The TEXT_KIND, STRING_KIND, NUMBER_KIND and INTEGER_KIND gadget's current
  82.     value can now be read from the gu_Active field in the structure    that
  83.     gg_UserData points to.
  84.  
  85. * 37.6  (15-Jun-96)
  86.     gu_Active in the structure that gg_UserData points to was not updated
  87.     when using any routine that used GU_SetGadgetAttrsA(). Now it checks
  88.     the gu_Active value to see if it is out of the gadget's limits.
  89.  
  90.     gng_Flags and gng_GadgetText is now cleared before creation of every
  91.     new gadget.
  92.  
  93.     The LAYOUTA_Spacing tag for LISTVIEW_KIND gadgets is now used to
  94.     determine the height of the gadget. If the height of a gadget should
  95.     be about 4 lines (GU_HeightFactor, 4), the height of the gadget is
  96.     calculated to 4*(font height+value of LAYOUTA_Spacing tag). The same
  97.     method is used for the GU_AddHeiLines tag.
  98.  
  99.     Hotkeys for LISTVIEW_KIND gadgets works as they should again. In v37.5
  100.     of GadUtil (and probably some earlier ones), the listview didn't scroll
  101.     down when you selected the next entry.
  102.  
  103.     Inserted pragmas and prototypes for tagcalls (pragmas only for SAS/C).
  104.     It is possible to create stub routines for the tagcalls for other
  105.     compilers by using fd2pragma 2.0.
  106.  
  107.     Inserted links to the include files in the index file for GadUtil.guide.
  108.  
  109. * 37.5  (29-May-96)
  110.     Bug in PROGRESS_KIND gadget removed. If the gadget was set to
  111.     show x/0 (also 0/0), a division by zero was done.
  112.  
  113.     Two new constants added to the include files: GADUTIL_VER and
  114.     GADUTIL_REV.
  115.     
  116.     Bug fixes in test (demo) programs. The FPF_DISKFONT flag in the
  117.     TextAttr structure was unset in all demo programs. Replaced the
  118.     manual version check in the demo programs with the GadUtil function
  119.     GU_CheckVersion. Removed unnecessary IDCMP flags from the demo
  120.     programs and replaced GadTools IDCMP with the GU_MinimumIDCMP tag.
  121.  
  122. * 37.4  (14-May-96)
  123.     Created a new gadget kind: LABEL_KIND. This gadget kind is used
  124.     to place text relative to other gadgets, bevel boxes, and other
  125.     texts. Can use the same type of shadows that the text for the
  126.     bevel box.
  127.  
  128.     Implemented a new function in the library: GU_CloseFont. Works
  129.     like graphics CloseFont, but takes the parameter in A0 instead
  130.     of A1.
  131.  
  132.     Replaced the list sort routine with a new one that sorts better.
  133.  
  134.     Wrote a new document, "GadUtil.index", that have a list over all
  135.     gadutil functions, sorted by what they do. There are also some
  136.     shortcuts to all tags for gadutil's own gadget kinds.
  137.  
  138.     Created two new flags for BEVELBOX_KIND and LABEL_KIND:
  139.     BB_3DTEXT - can be used as a replacement for GUBB_3DText, TRUE
  140.     LB_3DTEXT - can be used as a replacement for GULB_3DText, TRUE
  141.     
  142. * 37.3  (10-May-96)
  143.     Enforcer hits fixed in the code that handles the GU_AdjustLeft
  144.     and GU_AdjustRight tags.
  145.  
  146.     A new function to clear the inner part of a window was added.
  147.  
  148.     A new function to size (and move, if necessary) a window was
  149.     added.
  150.  
  151.     Bug fix in assembly language include file.
  152.  
  153. * 37.2  (02-May-96)
  154.     Started programming in StormC and did some tests with the library,
  155.     noticed that there was a couple of errors in some include files.
  156.  
  157.     GU_UpdateProgress was wrongly specified in the FD/clib files.
  158.     The output of GU_GetGadgetPtr was specified as (struct Gadget *),
  159.     this is now corrected.
  160.  
  161.     Included an example in C that uses the PROGRESS_KIND gadget.
  162.  
  163. * 37.1  (01-May-96)
  164.     IMAGE_KIND gadget bug fix. The color of the unselected image of
  165.     the gadget was wrong, if the image used more than 4 colors.
  166.  
  167. * 37.0  (29-Apr-96)
  168.     A new function that checks the library's revision added.
  169.     Two new tags added: GU_FractWidth and GU_FractHeight. Suggested
  170.     by Morten Amundsen.
  171.  
  172.     Some small bug fixes in 'C' include files (unterminated comments).
  173.     Cleaned up BetterTest.c a bit (removed some {}). Bug fix on the
  174.     last line of the example (GT_ReplyIMsg -> GU_ReplyIMsg).
  175.  
  176.     Added support for StormC in both installer script and include-
  177.     file installer. Created dictionary for StormC, so that all words
  178.     that belongs to GadUtil (functions, tags and constants) is shown
  179.     in another color.
  180.  
  181. * 36.60 (24-Feb-96)
  182.     Uses the screen's font as the gadget font if no GU_DefTextAttr or
  183.     GU_TextAttr tag is used. Bug fix from v36.59. Changed some docs,
  184.     assembled all examples,    changed installation scripts.
  185.  
  186. * 36.59 (06-Jan-96)
  187.     More docs completed (all docs, finally). Bug fix in the GU_AutoWidth,
  188.     GU_AdjustLeft and GU_AdjustRight tags. The underscore character was
  189.     counted as a normal one. This made gadgets without hotkeys one char
  190.     smaller than other gadgets. A new function that sorts one or two
  191.     lists was added. Some new constants added in include files.
  192.     Changed GU_MinimumIDCMP to support hotkeys. Changed PROGRESS_KIND
  193.     to use GU_GadgetText and GU_LocaleText. Uses the screen's font as
  194.     the gadget font if no GU_DefTextAttr or GU_TextAttr tag is used.
  195.  
  196. * 36.58 (01-Jan-96)
  197.     SLIDER_KIND and SCROLLER_KIND gadgets returned wrong result in
  198.     im->Code if the gadget was changes using the hotkey. Bug reported
  199.     by Lukasz Szelag.
  200.  
  201. * 36.57 (10-Dec-95)
  202.     Some more docs finished. A memory loss bug was fixed.
  203.  
  204. * 36.56 (10-Oct-95)
  205.     Changed some routines, so that hotkeys can't be used on disabled
  206.     gadgets. Made it possible to disable IMAGE_KIND, FILE_KIND and
  207.     DRAWER_KIND gadgets.
  208.  
  209. * 36.55 (30-Sep-95)
  210.     Bug fix in the hotkey part of the library. Wrong code were sent back
  211.     when using GU_LabelHotkey with a LISTVIEW_KIND gadget. A new gadget
  212.     kind was created, PROGRESS_KIND.
  213.  
  214. * 36.54 (06-Jul-95)
  215.     Added support for GU_AutoWidth to CYCLE_KIND gadgets.
  216.  
  217. * 36.53 (05-Jul-95) 
  218.     3 new tags and 4 new flags was added for the BEVELBOX_KIND gadget.
  219.     BEVELBOX_KIND gadgets can now have a shadow added to the text in the
  220.     border. The "sun" can be placed in 4 different places. GU_MinimumIDCMP
  221.     tag was added.
  222.  
  223. * 36.52 (25-Jun-95)
  224.     First public release. Some new flags for the BEVELBOX_KIND gadget was
  225.     added. Supports a total of 100 bevelbox kinds.
  226.  
  227.                                           P-O 961222
  228.                                           ~~~~~~~~~~
  229. ------------------------------------------------------------------------------
  230.  
  231.                             GadUtil.library v37.9
  232.                             ~~~~~~~~~~~~~~~~~~~~~
  233.     GadUtil is another gui library which main goal was to make it easy to
  234.     create font sensitive user interfaces. The library has grown away from
  235.     this main goal, and become another useful-routine-library.
  236.  
  237.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  238.     Distribution:
  239.  
  240.         1) Distribution of this library is allowed in two ways:
  241.              ¹) Only the .library file(s)
  242.              ²) The complete distribution
  243.  
  244.         2) Programmers of totally free software can use and distribute this
  245.           library for free.
  246.  
  247.         3) Programmers of Shareware, Licensware, commercial products and other
  248.            programs that the programmer get any kind of profit from shall send
  249.            a fully working (and registered) copy of the program and its docs to
  250.            us. All larger updates of the program should also be sent to us.
  251.           
  252.         4) Programmers of non-free software not covered by 1) and 2) (my Diskware
  253.            concept belongs to this group) shall be treated as in 3) (a fully
  254.            working and registered copy...).
  255.  
  256.         5) All programs (except commercial products in some cases) must state
  257.            that gadutil.library is used. This may be done in either the About
  258.            requester or in the documentation, but best of all in both places.
  259.  
  260.            Demonstration programs for gadutil.library (that includes the full
  261.            source) may be distributed without this note.
  262.  
  263.            Example for inclusion in About requester:
  264.  
  265.                 "This program uses gadutil.library, which
  266.                  is Copyright © 1994-1996 by P-O Yliniemi
  267.                  and Staffan Hämälä."
  268.  
  269.         6) All localized programs that uses this library should include the
  270.            .ct file(s) to allow anyone to translate that program into their
  271.            own language.
  272.  
  273.  
  274.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  275.     Below is a list of some of the main functions covered by this library.
  276.  
  277.     * FAST (NO OR VERY SMALL DIFFERENCE AGAINST GADTOOLS) AND SMALL (LESS THAN 13k).
  278.       WRITTEN IN ASSEMBLY LANGUAGE. NO F*CKING 'C' or any other slow language!
  279.  
  280.     * Font adaptive. Use any of the system fonts and most other fonts for
  281.       gadgets, texts and menus. All gadgets are placed relative to each
  282.       other, but can be placed at absolute positions (needed for the first
  283.       gadget).
  284.  
  285.     * No need to use GIMMEZEROZERO windows, as this is automatically handled
  286.       by the library. If you specify a gadget position of 10,10 the gadget
  287.       will be placed at 10,10 within the window's border.
  288.  
  289.     * Localized. It is really easy to localize all your (new) programs by
  290.       using this library. Functions and macros for creating localized menus
  291.       are supplied.
  292.  
  293.     * Both assembly and 'C' language support. This is one of the things that is
  294.       missing in most of the other gui libraries. Some extra macros are defined
  295.       for assembly language users, and will make the gadget and menu creating
  296.       process even more easy.
  297.  
  298.     * All GadTools gadgets are supported. Some extra functions are provided
  299.       for ListViews. BUTTON_KIND (and IMAGE_KIND) gadgets have some extra tags,
  300.       including a toggle-select option.
  301.  
  302.       6 extended gadget types are handled by the library:
  303.     
  304.         · FILE_KIND     - gadget for selecting a file.
  305.  
  306.         · DRAWER_KIND   - gadget for selecting a drawer. Most programs also
  307.                          use this gadget for file selection.
  308.  
  309.         · IMAGE_KIND    - uses an intuition image for the gadget. Can use
  310.                           different images for selected and non-selected state.
  311.  
  312.         · BEVELBOX_KIND - gadtools bevelboxes, with some extensions. All
  313.                           gadtools bevelboxes are supported (even with v37).
  314.                           Extensions allows text to be placed above, in or below
  315.                           the upper line of the box. All kinds can be inverted.
  316.  
  317.                           New for v36.52: Bevelbox text placement extended.
  318.                           3 new placements available together with the old
  319.                           ones: centered, left adjusted & right adjusted.
  320.  
  321.                           BFT_BUTTON   - GT v37 BUTTON_KIND border
  322.                           BFT_RIDGE    - GT v37 STRING_KIND border
  323.                           BFT_DROPBOX  - GT v39 BBFT_ICONDROPBOX border
  324.                           BFT_HORIZBAR - A horizontal shadowed line
  325.                           BFT_VERTBAR  - A vertical shadowed line
  326.  
  327.                           This makes it a total of 100 bevel box types. The bevel
  328.                           boxes are treated as gadgets by the library, and you
  329.                           can obtain the structure for the bevelbox in the same
  330.                           way as you get the gadget pointer.
  331.  
  332.                           New for v36.53: Added optional shadow on bevel box text.
  333.                           The shadow has a selectable color/pen and the "sun" can
  334.                           be placed in four different positions.
  335.  
  336.         · PROGRESS_KIND - progress indicator gadget. Background and fill color
  337.                           can be selected. Supports values up to 4.294.967.295,
  338.                           but maximum value should not exceed 4.294.967.295/width.
  339.                           v36.55.
  340.  
  341.     · LABEL_KIND    - a text label that can be placed relative to other texts,
  342.               gadgets, bevelboxes and progress indicators.
  343.  
  344.     * Can create the minimum required IDCMP mask so that all gadgets works.
  345.  
  346.     * A new OpenFont (graphics.library and diskfont.library replacement) is supplied.
  347.       This function will open any font (from RAM, ROM or load it from disk).
  348.  
  349.     * Functions for listviews include adding nodes (memory for the string is
  350.       allocated by the function), counting nodes, getting node pointers, clearing
  351.       a listview, attach and detach lists, moving nodes up and down. A function
  352.       that allows you to sort one or two lists is included from v36.59.
  353.  
  354.     * No need to open gadtools.library anymore, since all gadtools functions are
  355.       provided through this library. Some (the most useable) functions from locale
  356.       library are also provided by gadutil.
  357.  
  358.     * Many libraries are opened through gadutil.library, and these library bases
  359.       are available for your own use (you don't have to open or close some libs).
  360.  
  361.     * All gadgets are created using tag lists. Every next gadget will use the
  362.       previous gadgets values as defaults. Only one call to the gadget making
  363.       routine is needed for every gadget list.
  364.  
  365.     * All gadgets can have their own hotkey. No extra work is needed by the
  366.       programmer (only one extra tag).
  367.  
  368.     * All gadgets (and bevelboxes, texts and progress displays) can have a help
  369.       string attached to it. If the pointer is moved above that object, a
  370.       selectable string or text gadget will be used to display the help string.
  371.       The help string can be localized.
  372.  
  373.     * Distributed with lots of examples, mostly in assembly language, but also
  374.       in 'C'.
  375.  
  376.     * Other functions include:
  377.  
  378.         · Status change for toggle select buttons.
  379.  
  380.         · String change for STRING and TEXT_KIND gadgets.
  381.  
  382.         · Disable functions for all gadget kinds (new for 36.56).
  383.  
  384.         · Routines to set up a busy-pointer (available for both v37 and v39). These
  385.           routines also blocks the input to the main window of the program.
  386.  
  387.         · Routine to check if the mouse pointer is within a gadgets box. Useful
  388.           for mouse-position sensitive appwindows.
  389.  
  390.         · Bevelbox and window refreshing functions.
  391.  
  392.     · Functions to clear and size/move windows
  393.  
  394.     * FAST (NO OR VERY SMALL DIFFERENCE AGAINST GADTOOLS) AND SMALL (LESS THAN 13k).
  395.       WRITTEN IN ASSEMBLY LANGUAGE. NO F*CKING 'C' or any other slow language!
  396.  
  397.  
  398.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  399.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400.         Per-Olof Yliniemi                           Staffan Hämälä
  401.         Box 78                                      Pellovägen 268
  402.         SE-980 61 Tärendö                           SE-957 93 Pello
  403.         SWEDEN                                      SWEDEN
  404.  
  405.         email:                                      email:
  406.           peoyli@algonet.se                           staham@algonet.se
  407.  
  408.         phone:
  409.           +46-(0)978-20522
  410.  
  411.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  412.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  413.